package com.nuoniu.sibanyun.entity.crm.call;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import java.time.LocalDateTime;

/**
 * <p>
 * 客户管理-外呼管理-语音
 * </p>
 *
 * @author 白强
 * @since 2022-02-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("crm_call_voice")
@ApiModel(value="CrmCallVoice对象", description="客户管理-外呼管理-语音")
public class CrmCallVoice extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "租户ID")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "语音名称")
    @TableField("voice_name")
    @NotEmpty(message = "语音名称 不允许为空")
    private String voiceName;

    @ApiModelProperty(value = "语音地址")
    @TableField("voice_url")
    private String voiceUrl;

    @ApiModelProperty(value = "自动转人工前播放时间(毫秒)")
    @TableField("auto_to_man_time")
    private Integer autoToManTime;

    @ApiModelProperty(value = "创建人ID")
    @TableField("create_user_id")
    private Integer createUserId;

    @ApiModelProperty(value = "创建人姓名")
    @TableField("create_user_name")
    private String createUserName;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_date")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;


}
